<?php
class replace
{
	public function compile( $content )
	{
		//print_r( $_REQUEST );
		//echo $content;
		if( $_REQUEST['search'] ){
			$content = ereg_replace( $_REQUEST['search'],$_REQUEST['replaceto'],$content );
		}
		if( $_REQUEST['license'] ){
			$content = preg_replace( '/<\?php(\s|.)*?\*\//i',"<?php \n".$_REQUEST['license']."\n",$content );
		}
		
		return $content;
	}
}